package com.ruoyi.drugSystem.service.impl;

import com.ruoyi.drugSystem.domain.SysStockRk;
import com.ruoyi.drugSystem.mapper.SysStockRkMapper;
import com.ruoyi.drugSystem.service.ISysStockRkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 入库清单Service业务层处理
 *
 * @author ruoyi
 * @date 2023-03-11
 */
@Service
public class SysStockRkServiceImpl implements ISysStockRkService
{
    @Autowired
    private SysStockRkMapper sysStockRkMapper;

    /**
     * 查询入库清单
     *
     * @param id 入库清单主键
     * @return 入库清单
     */
    @Override
    public SysStockRk selectSysStockRkById(Long id)
    {
        return sysStockRkMapper.selectSysStockRkById(id);
    }

    /**
     * 查询入库清单列表
     *
     * @param sysStockRk 入库清单
     * @return 入库清单
     */
    @Override
    public List<SysStockRk> selectSysStockRkList(SysStockRk sysStockRk)
    {
        return sysStockRkMapper.selectSysStockRkList(sysStockRk);
    }

    /**
     * 新增入库清单
     *
     * @param sysStockRk 入库清单
     * @return 结果
     */
    @Override
    public int insertSysStockRk(SysStockRk sysStockRk)
    {
        return sysStockRkMapper.insertSysStockRk(sysStockRk);
    }

    /**
     * 修改入库清单
     *
     * @param sysStockRk 入库清单
     * @return 结果
     */
    @Override
    public int updateSysStockRk(SysStockRk sysStockRk)
    {
        return sysStockRkMapper.updateSysStockRk(sysStockRk);
    }

    /**
     * 批量删除入库清单
     *
     * @param ids 需要删除的入库清单主键
     * @return 结果
     */
    @Override
    public int deleteSysStockRkByIds(Long[] ids)
    {
        return sysStockRkMapper.deleteSysStockRkByIds(ids);
    }

    /**
     * 删除入库清单信息
     *
     * @param id 入库清单主键
     * @return 结果
     */
    @Override
    public int deleteSysStockRkById(Long id)
    {
        return sysStockRkMapper.deleteSysStockRkById(id);
    }
}